﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Gqq.CodeFirst.Palace
{
    public class Unicorn
    {
        public int Id { get; set; }
        public string Name { get; set; }

        public string Version { get; set; }

        public int PrincessId { get; set; } // FK for Princess reference
        public virtual Princess Princess { get; set; }

        public override string ToString()
        {
            return string.Format("Id:{0},Name:{1},PricessId:{2}", Id, Name, PrincessId);
            //return base.ToString();
        }
    }
}
